#include <stdio.h>
// #include <malloc.h>
// #include <stlib.h>
#include <assert.h>

int sortint (const void *int1, const void *int2);

int main (int argc, const char * argv[])
{
int* array;
int N = 0, i = 0;
	
printf ("Hello, World!\n"                        );
printf ("This is my brand new MacBook Air 13' 2013\n");
    
printf ("\nPlease enter number of numbers, N = ");
scanf  ("%d", &N                                );
array = (int*) calloc (N, sizeof(int));
assert (array != NULL);
    
printf ("and numbers itself: ");
for (i = 0; i < N; i++)
    {
	scanf ("%d", &array[i]);
    }
    
qsort (array, N, sizeof (int), sortint);
	
for (i = 0; i < N; i++)
    {
	printf ("%d ", array[i]);
    }
    
return 0;
}

int sortint (const void *int1, const void *int2)
	{
    return *(int*)int1 - *(int*)int2;
	}